import App from './App'
import store from './store'
import Util from './common/js/util.js'
import Http from './common/js/http.js'
import Config from './common/js/config.js'
import share from '@/common/js/share.js'

Vue.mixin(share)

Vue.prototype.$store = store //挂在vue

Vue.prototype.$util = Util;
Vue.prototype.$api = Http;


Vue.prototype.$config = Config;

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

//导入uview
import uView from "uview-ui";
Vue.use(uView);

import loginPop from '@/components/login-pop/login-pop.vue';
Vue.component('login-pop', loginPop);

import emptyData from '@/components/emptyData/emptyData.vue';
Vue.component('emptyData', emptyData);

import locationScope from "@/components/locationScope/locationScope.vue";
Vue.component('locationScope', locationScope);

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif